<%@ page import="dao.IBoardDao" %>
<%@ page import="Impl.BoardDaoImpl" %>
<%@ page import="entity.Board" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/4/2
  Time: 20:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("UTF-8");
    response.setCharacterEncoding("UTF-8");

  int bid = (Integer) session.getAttribute("key");
    String name= request.getParameter("upd");
    IBoardDao ibo=new BoardDaoImpl();
    int b = ibo.updateBoard(name,bid);

   if (b>0){
       request.getRequestDispatcher("updel_zhut.jsp").forward(request,response);
   }else{
       out.print("<script>alter('修改失败');</script>");
   }


%>

</body>
</html>
